<?php echo "$ ". $compra->getTotal(); ?>